﻿<%@ Page Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="AddMatch.aspx.cs" Inherits="WebApplication1.AddMatch" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style34
        {
            width: 200px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table style="width: 530px">
    <tr>
    <td>
    </td>
     <td>
    </td>
     <td>
         <asp:Label ID="lblAddMatchMsg" runat="server" Font-Bold="True" 
             Font-Names="Batang" Font-Size="Larger" ForeColor="Red"></asp:Label>
    </td>
    </tr>
    <tr>
            <td>
            </td>
            <td class="style34">
                <asp:Label ID="Label1" runat="server" Text="Match Name"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtMatchName" runat="server" style="margin-left: 5px" 
                    Width="295px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td class="style34">
                <asp:Label ID="Label6" runat="server" Text="Team Name "></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="ddlMatchTeam" runat="server" 
        style="margin-left: 4px" Width="296px" Height="16px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td class="style34">
                <asp:Label ID="Label2" runat="server" Text="Opposite Team"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtMatchOppTeam" runat="server" style="margin-left: 5px" 
                    Width="291px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td class="style34">
                <asp:Label ID="Label3" runat="server" Text="Held On"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtMatchHeldOn" runat="server" style="margin-left: 5px" 
                    Width="198px"></asp:TextBox>
        <asp:CompareValidator ID="cvAddMatchHeldOn" runat="server" 
            ControlToValidate="txtMatchHeldOn" 
            ErrorMessage="Entered data is not in the expected format.Please follow 'mm/dd/yyyy' format" 
            ondatabinding="btnMatchSubmit_Click" Operator="DataTypeCheck" 
            Type="Date"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td class="style34">
                <asp:Label ID="Label4" runat="server" Text="Held At"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtMatchHeldAt" runat="server" style="margin-left: 5px" 
                    Width="292px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td class="style34">
                <asp:Label ID="Label5" runat="server" Text="Result Of the Match"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtMatchResult" runat="server" style="margin-left: 5px" 
                    Height="46px" TextMode="MultiLine" Width="298px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td class="style34">
                <asp:Label ID="Label12" runat="server" Text="Detailed Result"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtMatchDetailedResult" runat="server" style="margin-left: 5px" 
                    Height="64px" TextMode="MultiLine" Width="300px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td class="style34">
                <asp:Label ID="Label13" runat="server" Text="Best Performer Of Home Team"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="ddlMatchBestPerformer" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
           
        <tr>
            <td>
            </td>
            <td class="style34">
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td class="style34">
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td class="style34">
                <asp:Button ID="btnMatchSubmit" runat="server" style="margin-left: 86px" 
    Text="Submit" onclick="btnMatchSubmit_Click" />
            </td>
            <td>
                <asp:Button ID="btnTeamCancel" runat="server" style="margin-left: 77px" 
    Text="Cancel" />
            </td>
        </tr>
    </table>
</asp:Content>
